//
//  BConversionInputView.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2019/1/4.
//  Copyright © 2019 guoshikeji. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol BConversionInputViewDelegate <NSObject>

- (void)conversionInputViewDidInputString:(NSString *)string;

@end

@interface BConversionInputView : UIView

/**
 *是否需要底部安全距离
 */
@property (nonatomic, assign) BOOL needSafeBottomArea;

/**
 * BConversionInputViewDelegate
 */
@property (nonatomic, weak) id <BConversionInputViewDelegate> delegate;


+ (CGSize)sizeFromWidth:(CGFloat)width needSafeBottomArea:(BOOL)needSafeBottomArea;

/**
 将当前输入字符串拼接到已经输入的当中
 */
+ (NSString *)string:(NSString *)string byAppendingString:(NSString *)appending digits:(NSInteger)digits;

@end

NS_ASSUME_NONNULL_END
